package com.cxx.framework.web;

/**
 * 抽象异常类
 */
public abstract class AbstractException extends RuntimeException {
    protected String code;

    public AbstractException(String errorMessage) {
        super(errorMessage);
    }

    public AbstractException(String code, String errorMessage) {
        super(errorMessage);
        this.code = code;
    }

    public AbstractException(String errorMessage, Exception innerException) {
        super(errorMessage, innerException);
    }

    public AbstractException(String code, String errorMessage, Exception innerException) {
        super(errorMessage, innerException);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
